package com.lanyou.esb.redis.vo;

import java.util.Date;

import org.apache.commons.lang3.time.FastDateFormat;

import com.lanyou.cook.common.Constants;

/**
 * 接口报警信息表
 * 
 * @author Davey.wu
 */
public class IfAlarmVo {
	/** 接口报警表id **/
	private String id;
	/** 接口id **/
	private String ifId;
	/** 接口编码 **/
	private String ifCode;//
	/** 接口版本 **/
	private String ifVersion;//
	/** 接口类型 **/
	private String ifType;
	/** 接口名字 **/
	private String ifName;
	/** 就否隔离 **/
	private String isIsolation;
	/** 系统 **/
	private String systemId;
	/** 系统编号 **/
	private String systemCode;
	/** 系统名称 **/
	private String systemName;
	/** 领域 **/
	private String fieldId;
	/** 领域 名称 **/
	private String fieldName;
	private String callSystemCode;
	/** 报警类型 **/
	private String alarmType;
	/** 报警等级 **/
	private String alarmLevel;
	/** 进去esb时间 **/
	private Date inEsbDate;
	/** 离开essb时间 **/
	private Date outEsbDate;
	/** 平台发送请求时间 **/
	private Date platReqDate;
	/** 平台接收请求时间 **/
	private Date platResDate;
	/** 流量 **/
	private int flow;
	/** 响应时长 **/
	private float answerTime;
	/** 请求阀值 **/
	private int flowThreshold;
	/** 发生时间 **/
	private Date errorDate;
	/** 错误接收者 **/
	private String errorReceiver;
	/** 工单号 **/
	private String assignWorkCode;
	/** 派单时间 **/
	private Date assignDate;
	private String isEnable = "1";
	/****/
	private String creator;
	/****/
	private String modifier;
	/****/
	private Date createDate;

	private Date lastUpdatedDate;

	/** http响应码 **/
	private String resCode;
	/** 请求来源 **/
	private String reqIp;
	/** 请求方式 **/
	private String reqMethod;
	/** 请求URL **/
	private String reqUrl;
	/** 请求报文 **/
	private String reqMess;
	/** 告警点峰值 **/
	private float peakValue;
	/** 重复次数 **/
	private int repeat = 0;
	private String inEsbDateStr;
	private String assignDateStr;
	private String errorDateStr;
	private static FastDateFormat fastDateFormat1 = FastDateFormat
			.getInstance(Constants.DATETIME_PATTERN_1);

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getIfId() {
		return ifId;
	}

	public void setIfId(String ifId) {
		this.ifId = ifId;
	}

	public String getIfType() {
		return ifType;
	}

	public void setIfType(String ifType) {
		this.ifType = ifType;
	}

	public String getIfName() {
		return ifName;
	}

	public void setIfName(String ifName) {
		this.ifName = ifName;
	}

	public String getSystemId() {
		return systemId;
	}

	public void setSystemId(String systemId) {
		this.systemId = systemId;
	}

	public String getSystemCode() {
		return systemCode;
	}

	public void setSystemCode(String systemCode) {
		this.systemCode = systemCode;
	}

	public String getAlarmType() {
		return alarmType;
	}

	public void setAlarmType(String alarmType) {
		this.alarmType = alarmType;
	}

	public String getAlarmLevel() {
		return alarmLevel;
	}

	public void setAlarmLevel(String alarmLevel) {
		this.alarmLevel = alarmLevel;
	}

	public Date getInEsbDate() {
		return inEsbDate;
	}

	public String getInEsbDateStr() {
		if (inEsbDate == null) {
			return null;
		}
		return fastDateFormat1.format(inEsbDate);
	}

	public void setInEsbDate(Date inEsbDate) {
		this.inEsbDate = inEsbDate;
	}

	public Date getOutEsbDate() {
		return outEsbDate;
	}

	public void setOutEsbDate(Date outEsbDate) {
		this.outEsbDate = outEsbDate;
	}

	public Date getPlatReqDate() {
		return platReqDate;
	}

	public void setPlatReqDate(Date platReqDate) {
		this.platReqDate = platReqDate;
	}

	public Date getPlatResDate() {
		return platResDate;
	}

	public void setPlatResDate(Date platResDate) {
		this.platResDate = platResDate;
	}

	public float getAnswerTime() {
		return answerTime;
	}

	public void setAnswerTime(float answerTime) {
		this.answerTime = answerTime;
	}

	public Date getErrorDate() {
		return errorDate;
	}

	public void setErrorDate(Date errorDate) {
		this.errorDate = errorDate;
	}

	public String getErrorReceiver() {
		return errorReceiver;
	}

	public void setErrorReceiver(String errorReceiver) {
		this.errorReceiver = errorReceiver;
	}

	public String getAssignWorkCode() {
		return assignWorkCode;
	}

	public void setAssignWorkCode(String assignWorkCode) {
		this.assignWorkCode = assignWorkCode;
	}

	public Date getAssignDate() {
		return assignDate;
	}

	public void setAssignDate(Date assignDate) {
		this.assignDate = assignDate;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getModifier() {
		return modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	public int getFlow() {
		return flow;
	}

	public void setFlow(int flow) {
		this.flow = flow;
	}

	public int getFlowThreshold() {
		return flowThreshold;
	}

	public void setFlowThreshold(int fowThreshold) {
		this.flowThreshold = fowThreshold;
	}

	public String getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(String isEnable) {
		this.isEnable = isEnable;
	}

	public Date getLastUpdatedDate() {
		return lastUpdatedDate;
	}

	public void setLastUpdatedDate(Date lastUpdatedDate) {
		this.lastUpdatedDate = lastUpdatedDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getSystemName() {
		return systemName;
	}

	public void setSystemName(String systemName) {
		this.systemName = systemName;
	}

	public String getFieldId() {
		return fieldId;
	}

	public void setFieldId(String fieldId) {
		this.fieldId = fieldId;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public void setInEsbDateStr(String inEsbDateStr) {
		this.inEsbDateStr = inEsbDateStr;
	}

	public String getAssignDateStr() {
		if (assignDate == null) {
			return null;
		}
		return fastDateFormat1.format(assignDate);
	}

	public void setAssignDateStr(String assignDateStr) {
		this.assignDateStr = assignDateStr;
	}

	public String getIsIsolation() {
		return isIsolation;
	}

	public void setIsIsolation(String isIsolation) {
		this.isIsolation = isIsolation;
	}

	public String getReqIp() {
		return reqIp;
	}

	public void setReqIp(String reqIp) {
		this.reqIp = reqIp;
	}

	public float getPeakValue() {
		return peakValue;
	}

	public void setPeakValue(float peakValue) {
		this.peakValue = peakValue;
	}

	public String getResCode() {
		return resCode;
	}

	public void setResCode(String resCode) {
		this.resCode = resCode;
	}

	public String getReqMethod() {
		return reqMethod;
	}

	public void setReqMethod(String reqMethod) {
		this.reqMethod = reqMethod;
	}

	public String getReqUrl() {
		return reqUrl;
	}

	public void setReqUrl(String reqUrl) {
		this.reqUrl = reqUrl;
	}

	public String getReqMess() {
		return reqMess;
	}

	public void setReqMess(String reqMess) {
		this.reqMess = reqMess;
	}

	public int getRepeat() {
		return repeat;
	}

	public void setRepeat(int repeat) {
		this.repeat = repeat;
	}

	public String getIfCode() {
		return ifCode;
	}

	public void setIfCode(String ifCode) {
		this.ifCode = ifCode;
	}

	public String getIfVersion() {
		return ifVersion;
	}

	public void setIfVersion(String ifVersion) {
		this.ifVersion = ifVersion;
	}

	public String getCallSystemCode() {
		return callSystemCode;
	}

	public void setCallSystemCode(String callSystemCode) {
		this.callSystemCode = callSystemCode;
	}

	public String getErrorDateStr() {
		if (errorDate == null) {
			return null;
		}
		return fastDateFormat1.format(errorDate);
	}

	public void setErrorDateStr(String errorDateStr) {
		this.errorDateStr = errorDateStr;
	}
}